package com.gavindon.android.network

import java.lang.Exception

/**
 * description:
 * Created by liNan on  2021/5/19 09:21
 */
sealed class DataResult<out T> {

    data class Success<out T>(val data: T) : DataResult<T>()
    data class Empty<out T>(val data: T) : DataResult<T>()
    data class NetTimeOut<out T>(val data: Exception) : DataResult<T>()
    //
    data class Error<out T>(val data: Exception) : DataResult<T>()
    data class Failed<out T>(val data: T) : DataResult<T>()


}

